/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.scribe.builder.api;

import org.scribe.model.OAuthConfig;
import org.scribe.model.Token;

/**
 *
 * @author cpaz
 */
public class ApontadorApi extends DefaultApi10a{
    private static final String AUTHORIZE_URL = "http://api.apontador.com.br/v1/oauth/authorize?oauth_token=%s&oauth_callback=http://api.apontador.com.br/v1/oauth/callback";
    public String getRequestTokenEndpoint() {
        return "http://api.apontador.com.br/v1/oauth/request_token";
    }

    @Override
    public String getAccessTokenEndpoint() {
        return "http://api.apontador.com.br/v1/oauth/access_token";
    }

    public String getAuthorizationUrl(Token requestToken) {
        
        return String.format(AUTHORIZE_URL, requestToken.getToken());
    }

    //public String getAuthorizationUrl(OAuthConfig config) {
    //    return String.format(AUTHORIZE_URL, config.);
    //}
    
}
